package net.ikenway.springboot.demo.Service.Interface;

import net.ikenway.springboot.demo.Model.Dto.AddressDto;
import net.ikenway.springboot.demo.Model.Entity.Address;

import java.util.List;

/**
 * @author MasterKenway <zk@ikenway.net>
 * @Description
 * @date Created Date 12/19/2020
 */
public interface AddressServiceIntf {
    List<AddressDto> findAll() throws Exception;

    AddressDto findById(Long addressId) throws Exception;

    AddressDto create(AddressDto addressDto) throws Exception;

    void update(AddressDto addressDto) throws Exception;

    void delete(List<Long> addressIds) throws Exception;

    Address existOrNot(Long addressId) throws Exception;
}
